Fetch all orders
Details
Used to fetch all orders.
URL : <base_url>/reseller/orders/all
Method : GET
Authentication required : YES
Request parameters
In the request URL, provide the following parameters or query string with values.
Parameter | Type | Example | Description |
---|---|---|---|
page | integer | 1 | Used for pagination. |
identifier | string | Hope Zoo - Adult | Used for searching. |
Success Response
Code : 200 OK
Content :
{
"current_page": 1,
"data": [
{
"sender_name": "Jon Snow",
"receiver_name": "Romario Hall",
"receiver_phone": "+18767728111",
"amount": 11000,
"ticket": true,
"self_deliver": true,
"identifier": "Hope Zoo - Adult",
"descriptor": null,
"code": "243706348584"
}
],
"first_page_url": "http://merchant.giftme.test/api/merchant/v1/reseller/orders/all?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://merchant.giftme.test/api/merchant/v1/reseller/orders/all?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://merchant.giftme.test/api/merchant/v1/reseller/orders/all?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://merchant.giftme.test/api/merchant/v1/reseller/orders/all",
"per_page": 30,
"prev_page_url": null,
"to": 1,
"total": 1
}